<#include "/common/pager_style/commonForm.ftl" encoding="UTF-8">
<script type="text/javascript" src="${request.contextPath}/resources/FCKeditor/fckeditor.js"></script>
<script type="text/javascript" src="${request.contextPath}/js/jquery/plugin/ajaxupload/ajaxfileupload.js"></script>
<script type="text/javascript" src="${request.contextPath}/js/jquery/zyplugin/appplugins/jquery.appPlugins.js"></script>
<#-- 定义有哪些按钮 reset:重写 back:返回 -->
<#assign buttonsName = {"list":"刷新","back":"返回"}>
<#assign buttonsImage={"save":"send.gif","refuse":"detail.gif","hisRecord":"view.gif","hisReview":"view.gif","later":"detail.gif","again":"detail.gif","draft":"save.gif","add":"add.gif","agree":"detail.gif","isfinish":"detail.gif"}>		
<#assign lookSubButtons={"hisRecord":"流转历史","hisReview":"审核历史"}>
<#assign selectButtons=[{"name":"其他菜单","icon":"icon-edit","subButtons":lookSubButtons}]>
<style type="text/css">
.uploadstyle{

	margin-right:15px
	
	}
</style>
<script language="JavaScript">
<!--
	var actName="deptDocRecordAction";
	var domainName="deptDocRecord";
// function opt_hisReview(){
// 	<#if reviewList?exists&&reviewListLength?exists&&reviewListLength!='0' > 
// 	art.dialog({
// 	      	title: '审核记录',
// 	      	content: document.getElementById('reviewHistory'),
// 	      	width:'70%',
// 	      	height:'70%',
// 	      	lock: true,
// 	      	ok: function(){
// 	      	},
// 	      	cancel: false
// 	      });
// 	<#else>
// 	art.dialog({
// 	    title: '审核记录',
// 	    content: "暂无审核记录！",
// 	    lock: true,
// 	    ok: function(){
// 	    },
// 	    cancel:false
// 	});
// 	</#if>
// }
// function opt_hisRecord(){
// 	<#if reviewList1?exists&&reviewListLength1?exists&&reviewListLength1!='0' > 
// 	art.dialog({
// 	      	title: '流转历史',
// 	      	content: document.getElementById('recordHistory'),
// 	      	width:'70%',
// 	      	height:'70%',
// 	      	lock: true,
// 	      	ok: function(){
// 	      	},
// 	      	cancel: false
// 	      });
// 	<#else>
// 	art.dialog({
// 	    title: '流转历史',
// 	    content: "暂无流转历史！",
// 	    lock: true,
// 	    ok: function(){
// 	    },
// 	    cancel:false
// 	});
// 	</#if>
// }
//-->
</script>

</head>
<body class="frameForm">
<form name="dictALForm" action="" method="post" onsubmit="return checkForm();" class="form-horizontal" role="form">
	<input type="hidden" id="id" name="id" value="${(deptDocRecord.id)?if_exists}"/>
	<input type="hidden" id="deptDocRecord.id" name="deptDocRecord.id" value="${(deptDocRecord.id)?if_exists}"/>
	<input type="hidden" name="page.offset" id="page.offset" value="${(page.offset)?if_exists}" >
	<input type="hidden" name="page.pageSize" id="page.pageSize" value="${(page.pageSize)?if_exists}">
	<input type="hidden" name="isDraftSave" id="isDraftSave" value="${(isDraftSave)?if_exists}">
	<input type="hidden" name="isFromSysPendings" id="isFromSysPendings" value="${(isFromSysPendings)?if_exists}">
	<input type="hidden" name="editState" id="editState" value="${(editState)?if_exists}">
	<input type="hidden" name="statusType" id="statusType" value="${(statusType)?if_exists}">
	<input type="hidden" id="deptDocRecord.docDataId" name="deptDocRecord.docDataId" value="${(deptDocRecord.docDataId)?if_exists}"/>
	<input type="hidden" id="deptDocRecord.docDataSwid" name="deptDocRecord.docDataSwid" value="${(deptDocRecord.docDataSwid)?if_exists}"/>
	<input type="hidden" id="deptDocRecord.status" name="deptDocRecord.status" value="${(deptDocRecord.status)?if_exists}"/>
	<input type="hidden" id="deptDocRecord.lwUnit.id" name="deptDocRecord.lwUnit.id" value="${(deptDocRecord.lwUnit.id)?if_exists}"/>
	<input type="hidden" name="deptDocReview.reviewType" id="deptDocReview.reviewType" value="">
			<!--st-->
		<div class="ui-com-top">
		<#-- 生成按钮 -->
		<#include "/common/pager_style/pageButtonsEx.ftl" encoding="UTF-8">
	</div><!-- end #ui-com-top -->
	<div class="ui-com-main">
	<div class="ui-formfield">
	<table class="tbl">
		<caption><#if (infoContent.infoBoard.name)?exists>${(infoContent.infoBoard.name)?if_exists}</#if>最多一星期</caption>
		<!-- 数据录入 -->
		<tbody>
			<tr>
				<td class="empty" style="padding:0; border:0;" width="15%"></td>
				<td class="empty" style="padding:0; border:0;" width="35%"></td>
				<td class="empty" style="padding:0; border:0;" width="15%"></td>
				<td class="empty" style="padding:0; border:0;" width="35%"></td>
			</tr>
			<@pEdit.pageEditText
					label="标题"
					pageState="${editState}"
					beginTR="true"
					endTR="false"
					attName="deptDocRecord.title"
					attValue="${(deptDocRecord.title)?if_exists}"/>
			<@pEdit.pageEditText
					label="文号"
					pageState="${editState}"
					beginTR="false"
					endTR="true"
					attName="deptDocRecord.docNum"
					attValue="${(deptDocRecord.docNum)?if_exists}"
					/>
			<@pEdit.pageEditText
					label="创建人"
					pageState="${editState}"
					beginTR="true"
					endTR="false"
					inputReadOnly="true"
					attName="deptDocRecord.createBy.userName"
					attValue="${(deptDocRecord.createBy.userName)?if_exists}"
					/>
			<@pEdit.pageEditText
					label="创建时间"
					pageState="${editState}"
					beginTR="false"
					endTR="true"
					inputReadOnly="true"
					attName="deptDocRecord.createTime"
					attValue="${(deptDocRecord.createTime)?if_exists}"
					/>				
			<!--来文单位-->
			<@pEdit.pageEditText
					label="发文单位"
					pageState="${editState}"
					beginTR="true"
					endTR="false"
					inputReadOnly="true"
					attName="deptDocRecord.lwUnit.name"
					attValue="${(deptDocRecord.lwUnit.name)?if_exists}"
					/>
			<@pEdit.pageEditText
					label="主办单位"
					pageState="${editState}"
					beginTR="false"
					endTR="true"
					inputReadOnly="true"
					attName="deptDocRecord.receiveUnit.name"
					attValue="${(deptDocRecord.receiveUnit.name)?if_exists}"
					/>		
	
			<@pEdit.pageEditTextDate
					label="限时日期"
					cssStyle="width:145px;"
					beginTR="true"
					endTR="false"
					pageState="${editState}"
					attName="deptDocRecord.expectDate"
					attValue="${(deptDocRecord.expectDate)?if_exists}"/>
					
			<@pEdit.pageEditSelectUserValue
					label="缓急程度"
					cssStyle="width:152px;"
					beginTR="ture"
					endTR="true"
					pageState="${editState}"
					attName="deptDocRecord.emergercyDegree"
					attValue="${(deptDocRecord.emergercyDegree)?if_exists}"
					optionSource={"1":"常规","2":"加急","3":"紧急"}
					defaultValue="1"
					/>
			<@pEdit.pageEditSelectUserValue
					label="超期情况"
					cssStyle="width:152px;"
					beginTR="ture"
					endTR="false"
					pageState="${editState}"
					attName="deptDocRecord.timeoutStatus"
					attValue="${(deptDocRecord.timeoutStatus)?if_exists}"
					optionSource={"0":"未超期","1":"警告","2":"已超期"}
					defaultValue="1"
					/>
			<@pEdit.pageEditSelectUserValue
					label="当前状态"
					cssStyle="width:152px;"
					beginTR="ture"
					endTR="false"
					pageState="${editState}"
					attName="deptDocRecord.status"
					attValue="${(deptDocRecord.status)?if_exists}"
					optionSource={"0":"草稿","1":"办理中","2":"已反馈","3":"已办结","4":"拒绝办理"}
					defaultValue="1"
					/>
<!--附件str-->					
				<tr >
					<th>
						<span><label for="">附件</label></span>
					</th>
					<td colspan="3">
						<div id="_attachments1" class="uploadstyle" style="">
						</div>
					<script type="text/javascript">
					<!--
						$(document).ready(function(){
							var $attach=$("#_attachments1");
							// 生成供下载的附件及上传功能
							var isShowed=$attach.attr("isShowed");
							if(isEmpty(isShowed) || isShowed!="true"){
								$attach.showAttachment("DEPT_DOC_RECORD",${(deptDocRecord.docDataId)?if_exists},{type:""});
								$attach.attr("isShowed","true");
							}
						});
					//-->
					</script>						
					</td>
				</tr>
<!--附件end-->												

						
				<@pEdit.pageEditTextarea
						label="主办单位意见"
						pageState="else"
						attName="deptDocRecord.returnRemark"
						height="50px;"
						colSpanNum="3"
						cssStyle="height:100%;width:100%;"
						attValue="${(deptDocCoOperationMain.opinion)?if_exists}"/>
<!--主办部门附件下载sta-->						
				<tr >
					<th>
						<span><label for="">主办单位附件</label></span>
					</th>
					<td colspan="3">

						<div id="_attachments5" class="uploadstyle" style="">
						</div>
					<script type="text/javascript">
					<!--
						$(document).ready(function(){
							var $attach=$("#_attachments5");
							// 生成供下载的附件及上传功能
							var isShowed=$attach.attr("isShowed");
							if(isEmpty(isShowed) || isShowed!="true"){
								$attach.showAttachment("DEPT_DOC_RECORD",${(deptDocCoOperationMain.newestDocDataId)?if_exists},{type:""});
								$attach.attr("isShowed","true");
							}
						});
					//-->
					</script>						
					
					</td>
				</tr
<!--主办部门附件下载end-->								
						
			</tbody>
		</table>
		
<!--===============流转历史start======================-->
<#-- 	<div id="recordHistory" class="pad" style="height:500px;display:none;overflow-x:hidden;overflow-y:auto" >		
		<#if reviewList1?exists&&reviewListLength1?exists&&reviewListLength1!='0' > 
			<table class="tbl">
			<caption>流转历史</caption>
			<tbody>
				<tr>
				<td class="empty" style="padding:0; border:0;" width="5%"></td>
				<td class="empty" style="padding:0; border:0;" width="10%"></td>
				<td class="empty" style="padding:0; border:0;" width="20%"></td>
				<td class="empty" style="padding:0; border:0;" width="20%"></td>
				<td class="empty" style="padding:0; border:0;" width="10%"></td>
				<td class="empty" style="padding:0; border:0;" width="10%"></td>
				</tr>
				<td align="center">序号</td>
				<td align="center">单位名称</td>
				<td align="center">完成情况</td>
				<td align="center">附件</td>
				<td	align="center">打开时间</td>
				<td align="center">完成时间</td>				
			 <#list reviewList1 as review>
			 	<tr>	
			<td align="center">${((review.num)?if_exists)?html}</td>
			<td align="center">${((review.createUnit)?if_exists)?html}</td>
			<td align="center">${((review.title)?if_exists)?html}</td>
					<td align="center" >
						<div id="${(review.docDataId)?if_exists}a" class="uploadstyle" style="text-align:left;"></div>
					<script type="text/javascript">
						$(document).ready(function(){
							var $attach=$("#${(review.docDataId)?if_exists}a");
							// 生成供下载的附件及上传功能
							var isShowed=$attach.attr("isShowed");
							if(isEmpty(isShowed) || isShowed!="true"){
								$attach.showAttachment("DEPT_DOC_RECORD",${(review.docDataId)?if_exists},{type:""});
								$attach.attr("isShowed","false");
							}
						});
					</script>
					</td>
						
				<td align="center">${((review.reviewTime)?if_exists)?html}</td>
				<td align="center">${((review.finishTime)?if_exists)?html}</td>	
					</tr>
			 </#list>
			 
			</tbody>
		</table>
		 </#if>
		</div> -->
<!--===============流转历史end=================-->

		
<!--=============协办意见start===========-->
<#-- 		 <div id="coOperation" class="pad" style="height:500px;display:none;overflow-x:hidden;overflow-y:auto" >		
		<#if deptDocCoOperationList?exists&&deptDocCoOperationListLength?exists&&deptDocCoOperationListLength!='0' > 
			<table class="tbl">
			<caption>协办单位意见</caption>
			<tbody>
				<tr>
				<td  class="empty" style="padding:0; border:0;" width="20%"></td>
				<td  class="empty" style="padding:0; border:0;" width="20%"></td>
				<td  class="empty" style="padding:0; border:0;" width="10%"></td>
				<td  class="empty" style="padding:0; border:0;" width="10%"></td>
				<td  class="empty" style="padding:0; border:0;" width="10%"></td>
				</tr>

				<td align="center">协办单位</td>
				<td align="center">协办意见</td>
				<td align="center">附件</td>
				<td	align="center">完成人</td>
				<td align="center">完成时间</td>	
			
			 <#list deptDocCoOperationList as review>
			 	<tr>	
			<td align="center">${((review.unitId.name)?if_exists)?html}</td>
			<td align="center">${((review.opinion)?if_exists)?html}</td>
			<td align="center" >
						<div id="${(review.docDataId)?if_exists}c" class="uploadstyle" style="text-align:left;"></div>
					<script type="text/javascript">
						$(document).ready(function(){
							var $attach=$("#${(review.docDataId)?if_exists}c");
							// 生成供下载的附件及上传功能
							var isShowed=$attach.attr("isShowed");
							if(isEmpty(isShowed) || isShowed!="true"){
								$attach.showAttachment("DEPT_DOC_RECORD",${(review.docDataId)?if_exists},{type:""});
								$attach.attr("isShowed","false");
							}
						});
					</script>
			</td>
			<td align="center">${((review.finishBy.userName)?if_exists)?html}</td>
			<td align="center">${((review.finishTime)?if_exists)?html}</td>	
				</tr>
			 </#list>
			 
			</tbody>
		</table>
		 </#if>
		 </div> -->
<!--====================协办意见end=========================-->	

<#-- 		 <div id="reviewHistory" class="pad" style="height:500px;display:none;overflow-x:hidden;overflow-y:auto" >		
		<#if reviewList?exists&&reviewListLength?exists&&reviewListLength!='0' > 
		<table class="tbl">
		<caption>审核记录</caption>
		<tbody>
			<tr>
				<td class="empty" style="padding:0; border:0;" width="10%"></td>
				<td class="empty" style="padding:0; border:0;" width="13%"></td>
				<td class="empty" style="padding:0; border:0;" width="10%"></td>
				<td class="empty" style="padding:0; border:0;" width="13%"></td>
				<td class="empty" style="padding:0; border:0;" width="10%"></td>
				<td class="empty" style="padding:0; border:0;" width="13%"></td>
				<td class="empty" style="padding:0; border:0;" width="10%"></td>
				<td class="empty" style="padding:0; border:0;" width="21%"></td>
			</tr>
	        <#list reviewList as review>
	        	<@pEdit.pageEditText
					label="审核类型"
					pageState=""
					endTR="false"
					attName="review.reviewType"
					attValue="${(review.reviewType)?if_exists}"
					colSpanNum="1"
					/>
					<@pEdit.pageEditText
					label="审核人"
					pageState=""
					beginTR="false"
					endTR="false"
					attName="review.reviewBy.userName"
					attValue="${(review.reviewBy.userName)?if_exists}"
					colSpanNum="1"
					/>
					<@pEdit.pageEditSelectUserValue
					label="审核结果"
					colSpanNum="1"
					beginTR="false"
					endTR="false"
					colSpanNum="1"
					pageState=""
					attName="review.status"
					attValue="${(review.status)?if_exists}"
					optionSource={"-1":"不同意","1":"同意"}
					defaultValue="1"
					/>	
				<@pEdit.pageEditText
					label="审核时间"
					colSpanNum="1"
					beginTR="false"
					endTR="true"
					pageState=""
					attName="review.reviewTime"
					attValue="${(review.reviewTime)?if_exists}"
					/>	
			<@pEdit.pageEditText
					beginTR = "true"
					endTR = "true"
					label="审核意见"
					inputReadOnly="true"
					pageState="${editState}"
					attName="review.opinion"
					attValue="${(review.opinion)?if_exists}"
					colSpanNum="8"/>
	        </#list>
        </tbody>
	</table>
        </#if>
      </div>		 -->

    <#include "/week/models/dialog.ftl" encoding="UTF-8"/>
    
	</div><!--end #ui-formfield-->
	
	
	</div><!-- end #ui-com-main -->
		
		
		<!--en-->
		
	
</form>
</body>
</html>